<?php
	include_once ('./bootstrap.php');

	
	
Doctrine_Core :: loadModels('../models');

	$cours = new Cours();
	$cours['cours_jour'] = $_POST['jours'];
	$cours['cours_heure'] = $_POST['heure'];
	$cours['niv_id'] =  $_POST['niveau'];
	$cours['danse_id'] =  $_POST['danse'];
	$cours['ad_id'] =  $_POST['professeur'] ;
	$cours->save();
	
	echo "Ajout du cours.</br></br>"
	//$arrayCours = Doctrine_Core :: getTable ( 'Cours' )->findAll(null);
	
?>